package cn.edu.sdju.wanglo1911.team10.dao;

import java.util.List;

import cn.edu.sdju.wanglo1911.team10.po.OrderItem;
import cn.edu.sdju.wanglo1911.team10.po.OrderSummary;
import cn.edu.sdju.wanglo1911.team10.po.QueryOption;

public interface OrderItemDao {
	List<OrderItem> getAllItemByUserId(String userId);
	List<OrderItem> getAllItemByOrderNo(String orderNo);
	List<OrderSummary> advanceQuery(QueryOption option);
	Integer getTotalQueryNumber(QueryOption option);
	OrderItem getItemById(OrderItem item);
	void insertItem(OrderItem item);
	void updateItem(OrderItem item);
	void updateOrder(OrderSummary order);
	void deleteAllByUserId(String userId);
	void deleteAllByOrderNo(List<String> orderNos);
}
